<html>
<head><meta charset="utf-8"><title>platform-specific run-make test? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/platform-specific.20run-make.20test.3F.html">platform-specific run-make test?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234415330"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/platform-specific%20run-make%20test%3F/near/234415330" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Richard Cobbe <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/platform-specific.20run-make.20test.3F.html#234415330">(Apr 13 2021 at 23:05)</a>:</h4>
<p>I've written a run-make test for a feature that's only supported on Windows.  Is there a mechanism to ensure that the test only runs on Windows?  Based on the contents of run-make-fulldeps/tools.mk, I tried <code>ifdef IS_WINDOWS ... else NOP ... endif</code>, but that turned out not to work, and the ubuntu test run failed in CI.</p>



<a name="234424944"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/platform-specific%20run-make%20test%3F/near/234424944" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/platform-specific.20run-make.20test.3F.html#234424944">(Apr 14 2021 at 00:52)</a>:</h4>
<p>Makefiles can be annotated with the regular compiletest annotations, like <a href="https://github.com/rust-lang/rust/blob/master/src/test/run-make-fulldeps/windows-binary-no-external-deps/Makefile#L10"><code># only-windows</code></a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>